cmake_minimum_required(VERSION 3.6)
project(gm_tool)

set(BOOST_ROOT
    CACHE
    STRING
    "/data/codes/codes/install/boost"
    "root path of boost installation")

if(NOT "${BOOST_ROOT}" STREQUAL "")
list(APPEND CMAKE_PREFIX_PATH ${BOOST_ROOT}/lib/cmake/Boost-1.85.0)
list(APPEND CMAKE_PREFIX_PATH ${BOOST_ROOT}/lib/cmake)
endif()

set(CURRENT_TOOL "gmssl" CACHE STRING  "gmssl|tongsuo|kylinssl|openssl")

#  QT_DIR must be specific first
#

# list(APPEND CMAKE_PREFIX_PATH ${BOOST_PREFIX}/boost_assert-1.85.0)
# list(APPEND CMAKE_PREFIX_PATH ${BOOST_PREFIX}/boost_chrono-1.85.0)

#add_subdirectory(gmsrc)
#add_subdirectory(curl)
add_subdirectory(gmssltest)
#add_subdirectory(cpp-netlib)
#add_dependencies(openssltest gmssl)
#add_dependencies(openssltest gmssl)
